import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Hello from '@/views/Hello'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/hello',
      name: 'aaa',
      component: Hello
    },
    {
      path: '/products',
      name: 'bbb',
      component:  () => import('@/views/products')
    }, 
    {
      path: '/showpro',
      name: 'showpro',
      component: () => import('@/views/showpro')
    },
    {
      path: '/cart',
      name: 'cart',
      component: () => import('@/views/cart')
    },
    {
      path: '/eleui1',
      name: 'ele1',
      component: () => import('@/views/ele1')
    }
  ]
})
